<?xml version="1.0" encoding="iso-8859-1"?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
  <html xmlns="http://www.w3.org/1999/xhtml">
		<head>
			<!-- template designed by Marco Von Ballmoos -->
			<title>Docs For Class UploadSignature</title>
			<link rel="stylesheet" href="../media/stylesheet.css" />
			<meta http-equiv='Content-Type' content='text/html; charset=iso-8859-1'/>
		</head>
		<body>
			<div class="page-body">			
<h2 class="class-name">Class UploadSignature</h2>

<a name="sec-description"></a>
<div class="info-box">
	<div class="info-box-title">Description</div>
	<div class="nav-bar">
					<span class="disabled">Description</span> |
													<a href="#sec-var-summary">Vars</a> (<a href="#sec-vars">details</a>)
						|											<a href="#sec-method-summary">Methods</a> (<a href="#sec-methods">details</a>)
						
					</div>
	<div class="info-box-body">
        		<!-- ========== Info from phpDoc block ========= -->
<p class="short-description">Response from signature request that contains the GUID and an AWS S3  signature. With these credentials the user will then be able upload a  file into &lt;a href=&quot;http://vzaar.com&quot;&gt;vzaar&lt;/a&gt; video storage area.</p>
		<p class="notes">
			Located in <a class="field" href="_UploadSignature.php.html">/UploadSignature.php</a> (line <span class="field">10</span>)
		</p>
		
				
		<pre></pre>
	
			</div>
</div>



	<a name="sec-var-summary"></a>
	<div class="info-box">
		<div class="info-box-title">Variable Summary</span></div>
		<div class="nav-bar">
			<a href="#sec-description">Description</a> |
						<span class="disabled">Vars</span> (<a href="#sec-vars">details</a>)
							| 
									<a href="#sec-method-summary">Methods</a> (<a href="#sec-methods">details</a>)
							
								</div>
		<div class="info-box-body">
			<div class="var-summary">
																																																																																								<div class="var-title">
					<span class="var-type">mixed</span>
					<a href="#$accessKeyId" title="details" class="var-name">$accessKeyId</a>
				</div>
																<div class="var-title">
					<span class="var-type">mixed</span>
					<a href="#$acl" title="details" class="var-name">$acl</a>
				</div>
																<div class="var-title">
					<span class="var-type">mixed</span>
					<a href="#$bucket" title="details" class="var-name">$bucket</a>
				</div>
																<div class="var-title">
					<span class="var-type">mixed</span>
					<a href="#$expirationDate" title="details" class="var-name">$expirationDate</a>
				</div>
																<div class="var-title">
					<span class="var-type">mixed</span>
					<a href="#$guid" title="details" class="var-name">$guid</a>
				</div>
																<div class="var-title">
					<span class="var-type">mixed</span>
					<a href="#$https" title="details" class="var-name">$https</a>
				</div>
																<div class="var-title">
					<span class="var-type">mixed</span>
					<a href="#$key" title="details" class="var-name">$key</a>
				</div>
																<div class="var-title">
					<span class="var-type">mixed</span>
					<a href="#$policy" title="details" class="var-name">$policy</a>
				</div>
																<div class="var-title">
					<span class="var-type">mixed</span>
					<a href="#$signature" title="details" class="var-name">$signature</a>
				</div>
											</div>
		</div>
	</div>

	<a name="sec-method-summary"></a>
	<div class="info-box">
		<div class="info-box-title">Method Summary</span></div>
		<div class="nav-bar">
			<a href="#sec-description">Description</a> |
																		<a href="#sec-var-summary">Vars</a> (<a href="#sec-vars">details</a>)
				 
				|
						<span class="disabled">Methods</span> (<a href="#sec-methods">details</a>)
		</div>
		<div class="info-box-body">			
			<div class="method-summary">
																				<div class="method-definition">
					static 						<span class="method-result">void</span>
										<a href="#fromXml" title="details" class="method-name">fromXml</a>
											(<span class="var-type"></span>&nbsp;<span class="var-name">$data</span>)
									</div>
								
												<div class="method-definition">
											<span class="method-result">UploadSignature</span>
										<a href="#__construct" title="details" class="method-name">__construct</a>
											(<span class="var-type">guid</span>&nbsp;<span class="var-name">$guid</span>, <span class="var-type">key</span>&nbsp;<span class="var-name">$key</span>, <span class="var-type">https</span>&nbsp;<span class="var-name">$https</span>, <span class="var-type">acl</span>&nbsp;<span class="var-name">$acl</span>, <span class="var-type">bucket</span>&nbsp;<span class="var-name">$bucket</span>, <span class="var-type">policy</span>&nbsp;<span class="var-name">$policy</span>, <span class="var-type">expirationDate</span>&nbsp;<span class="var-name">$expirationDate</span>, <span class="var-type">accessKey</span>&nbsp;<span class="var-name">$accessKeyId</span>, <span class="var-type">signature</span>&nbsp;<span class="var-name">$signature</span>)
									</div>
																</div>
		</div>
	</div>		

	<a name="sec-vars"></a>
	<div class="info-box">
		<div class="info-box-title">Variables</div>
		<div class="nav-bar">
			<a href="#sec-description">Description</a> |
										<a href="#sec-var-summary">Vars</a> (<span class="disabled">details</span>)
						
			
										| 
									<a href="#sec-method-summary">Methods</a> (<a href="#sec-methods">details</a>)
							
					</div>
		<div class="info-box-body">
			<a name="var$accessKeyId" id="$accessKeyId"><!-- --></A>
<div class="evenrow">

	<div class="var-header">
		<span class="var-title">
			<span class="var-type">mixed</span>
			<span class="var-name">$accessKeyId</span>
						(line <span class="line-number">23</span>)
		</span>
	</div>

	<!-- ========== Info from phpDoc block ========= -->
	
	
		
		

</div>
<a name="var$acl" id="$acl"><!-- --></A>
<div class="oddrow">

	<div class="var-header">
		<span class="var-title">
			<span class="var-type">mixed</span>
			<span class="var-name">$acl</span>
						(line <span class="line-number">19</span>)
		</span>
	</div>

	<!-- ========== Info from phpDoc block ========= -->
	
	
		
		

</div>
<a name="var$bucket" id="$bucket"><!-- --></A>
<div class="evenrow">

	<div class="var-header">
		<span class="var-title">
			<span class="var-type">mixed</span>
			<span class="var-name">$bucket</span>
						(line <span class="line-number">20</span>)
		</span>
	</div>

	<!-- ========== Info from phpDoc block ========= -->
	
	
		
		

</div>
<a name="var$expirationDate" id="$expirationDate"><!-- --></A>
<div class="oddrow">

	<div class="var-header">
		<span class="var-title">
			<span class="var-type">mixed</span>
			<span class="var-name">$expirationDate</span>
						(line <span class="line-number">22</span>)
		</span>
	</div>

	<!-- ========== Info from phpDoc block ========= -->
	
	
		
		

</div>
<a name="var$guid" id="$guid"><!-- --></A>
<div class="evenrow">

	<div class="var-header">
		<span class="var-title">
			<span class="var-type">mixed</span>
			<span class="var-name">$guid</span>
						(line <span class="line-number">16</span>)
		</span>
	</div>

	<!-- ========== Info from phpDoc block ========= -->
	
	
		
		

</div>
<a name="var$https" id="$https"><!-- --></A>
<div class="oddrow">

	<div class="var-header">
		<span class="var-title">
			<span class="var-type">mixed</span>
			<span class="var-name">$https</span>
						(line <span class="line-number">18</span>)
		</span>
	</div>

	<!-- ========== Info from phpDoc block ========= -->
	
	
		
		

</div>
<a name="var$key" id="$key"><!-- --></A>
<div class="evenrow">

	<div class="var-header">
		<span class="var-title">
			<span class="var-type">mixed</span>
			<span class="var-name">$key</span>
						(line <span class="line-number">17</span>)
		</span>
	</div>

	<!-- ========== Info from phpDoc block ========= -->
	
	
		
		

</div>
<a name="var$policy" id="$policy"><!-- --></A>
<div class="oddrow">

	<div class="var-header">
		<span class="var-title">
			<span class="var-type">mixed</span>
			<span class="var-name">$policy</span>
						(line <span class="line-number">21</span>)
		</span>
	</div>

	<!-- ========== Info from phpDoc block ========= -->
	
	
		
		

</div>
<a name="var$signature" id="$signature"><!-- --></A>
<div class="evenrow">

	<div class="var-header">
		<span class="var-title">
			<span class="var-type">mixed</span>
			<span class="var-name">$signature</span>
						(line <span class="line-number">24</span>)
		</span>
	</div>

	<!-- ========== Info from phpDoc block ========= -->
	
	
		
		

</div>
						
		</div>
	</div>
	
	<a name="sec-methods"></a>
	<div class="info-box">
		<div class="info-box-title">Methods</div>
		<div class="nav-bar">
			<a href="#sec-description">Description</a> |
															<a href="#sec-var-summary">Vars</a> (<a href="#sec-vars">details</a>)
																	<a href="#sec-method-summary">Methods</a> (<span class="disabled">details</span>)
						
		</div>
		<div class="info-box-body">
			<A NAME='method_detail'></A>
<a name="methodfromXml" id="fromXml"><!-- --></a>
<div class="oddrow">
	
	<div class="method-header">
		<span class="method-title">static method fromXml</span> (line <span class="line-number">69</span>)
	</div> 
	
	<!-- ========== Info from phpDoc block ========= -->
	
	<div class="method-signature">
	    static
		<span class="method-result">void</span>
		<span class="method-name">
			fromXml
		</span>
					(<span class="var-type"></span>&nbsp;<span class="var-name">$data</span>)
			</div>
	
			<ul class="parameters">
					<li>
				<span class="var-type"></span>
				<span class="var-name">$data</span>			</li>
				</ul>
		
			
	</div>

<a name="method__construct" id="__construct"><!-- --></a>
<div class="evenrow">
	
	<div class="method-header">
		<span class="method-title">Constructor __construct</span> (line <span class="line-number">50</span>)
	</div> 
	
	<!-- ========== Info from phpDoc block ========= -->
<p class="short-description">Package protected constructor.</p>
	
	<div class="method-signature">
		<span class="method-result">UploadSignature</span>
		<span class="method-name">
			__construct
		</span>
					(<span class="var-type">guid</span>&nbsp;<span class="var-name">$guid</span>, <span class="var-type">key</span>&nbsp;<span class="var-name">$key</span>, <span class="var-type">https</span>&nbsp;<span class="var-name">$https</span>, <span class="var-type">acl</span>&nbsp;<span class="var-name">$acl</span>, <span class="var-type">bucket</span>&nbsp;<span class="var-name">$bucket</span>, <span class="var-type">policy</span>&nbsp;<span class="var-name">$policy</span>, <span class="var-type">expirationDate</span>&nbsp;<span class="var-name">$expirationDate</span>, <span class="var-type">accessKey</span>&nbsp;<span class="var-name">$accessKeyId</span>, <span class="var-type">signature</span>&nbsp;<span class="var-name">$signature</span>)
			</div>
	
			<ul class="parameters">
					<li>
				<span class="var-type">guid</span>
				<span class="var-name">$guid</span><span class="var-description">: the vzaar global unique identifier</span>			</li>
					<li>
				<span class="var-type">key</span>
				<span class="var-name">$key</span><span class="var-description">: a name for the S3 object that will store the uploaded          file's data</span>			</li>
					<li>
				<span class="var-type">https</span>
				<span class="var-name">$https</span>			</li>
					<li>
				<span class="var-type">acl</span>
				<span class="var-name">$acl</span><span class="var-description">: the access control policy to apply to the uploaded file</span>			</li>
					<li>
				<span class="var-type">bucket</span>
				<span class="var-name">$bucket</span><span class="var-description">: the vzaar bucket that has been allocated for this file</span>			</li>
					<li>
				<span class="var-type">policy</span>
				<span class="var-name">$policy</span><span class="var-description">: a Base64-encoded policy document that applies rules to      file uploads sent by the S3 POST form. This document is used to authorise      the form, and to impose conditions on the files that can be uploaded.</span>			</li>
					<li>
				<span class="var-type">expirationDate</span>
				<span class="var-name">$expirationDate</span><span class="var-description">: s Greenwich Mean Time (GMT) timestamp that      specifies when the policy document will expire. Once a policy document      has expired, the upload will fail</span>			</li>
					<li>
				<span class="var-type">accessKey</span>
				<span class="var-name">$accessKeyId</span><span class="var-description">: the vzaar AWS Access Key Identifier credential</span>			</li>
					<li>
				<span class="var-type">signature</span>
				<span class="var-name">$signature</span><span class="var-description">: a signature value that authorises the form and proves      that only vzaar could have created it. This value is calculated by signing      the policy document</span>			</li>
				</ul>
		
			
	</div>
						
		</div>
	</div>


	<p class="notes" id="credit">
		Documentation generated on Tue, 10 Nov 2009 21:14:11 +0200 by <a href="http://www.phpdoc.org" target="_blank">phpDocumentor 1.4.3</a>
	</p>
	</div></body>
</html>